package cn.ittaoli.ajax.dao;

import cn.ittaoli.ajax.model.Article;
import cn.ittaoli.ajax.model.ArticleComment;
import cn.ittaoli.ajax.model.ArticleCommentTree;
import cn.ittaoli.ajax.model.ArticleView;

import java.util.List;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);

    List<ArticleView> getAll();

    List<ArticleCommentTree> getAllComment(Integer articleId,Integer replyId);

    List<ArticleView> getAllPhone(Integer navid);
}